package com.webserver.controller;

import com.webserver.core.DispatcherServlet;

import java.io.File;
import java.net.URISyntaxException;

public class ArticleController {private static File userDir;
    private static File root;
    private static File staticDir;

    static {
        try {
            root = new File(DispatcherServlet.class.getClassLoader().getResource(".").toURI());
            staticDir = new File(root, "static");
        } catch (URISyntaxException e) {
            e.printStackTrace();
        }
        userDir = new File("./users");
        if (!(userDir.exists())) {
            userDir.mkdirs();
        }
    }


    public void writeArticle(){

    }
}
